package com.example.entity;

import java.util.Date;

public class UserCollection {
    private int collectionid;
    private int gid;
    private int uid;
    private String time;
    private Goods goods;

    @Override
    public String toString() {
        return "UserCollection{" +
                "collectionid=" + collectionid +
                ", gid=" + gid +
                ", uid=" + uid +
                ", time='" + time + '\'' +
                ", goods=" + goods +
                ", uid=" + uid +
                ", time=" + time +
                ", user=" + user +
                '}';
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }


//    private Date time;
private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getCollectionid() {
        return collectionid;
    }

    public void setCollectionid(int collectionid) {
        this.collectionid = collectionid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }


}
